package com.example.jack.community.view.me.per_setting;

import android.content.Intent;
import android.os.Bundle;
import android.support.percent.PercentRelativeLayout;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;

import com.example.jack.community.R;
import com.example.jack.community.view.me.BlackStatusActivity;

import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;

/**
 * 账号与安全界面
 */
public class Acc_secActivity extends BlackStatusActivity {

    //返回按钮
    @BindView(R.id.img_back)
    ImageView imgBack;

    //重置手机布局
    @BindView(R.id.rel_reset_phonenum)
    PercentRelativeLayout relResetPhonenum;

    //重置手机密码
    @BindView(R.id.rel_reset_password)
    PercentRelativeLayout relResetPassword;

    //文字返回按钮
    @BindView(R.id.txt_return)
    TextView txtReturn;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_acc_sec);
        ButterKnife.bind(this);
    }

    @OnClick({R.id.txt_return, R.id.img_back, R.id.rel_reset_phonenum, R.id.rel_reset_password})
    public void onViewClicked(View view) {
        switch (view.getId()) {
            case R.id.txt_return://文字返回按钮
                finish();
                break;
            case R.id.img_back://返回按钮
                finish();
                break;
            case R.id.rel_reset_phonenum://重置手机号码
                startActivity(new Intent(Acc_secActivity.this, Res_pho_numActivity.class));
                break;
            case R.id.rel_reset_password://重置手机密码
                startActivity(new Intent(Acc_secActivity.this, Res_passActivity.class));
                break;
        }
    }
}
